<?php
class site_dao_office extends ss_dao_office{
	public function getMasterData(){
		return array('name'=>$this->name(),'slug'=>$this->slug(),'headline'=>$this->headline(),'structure'=>$this->structure_item_idstructure_item());
	}
}

class site_dao_office_mapper extends ss_dao_office_mapper{
	protected $table='office';
	protected $primary='idoffice';
	/*
	public function offices(){
		$query=$this->injector->create('ss_dao_query');
		$sql=$query
		->from(array(
			$this->table))
		->select();
		$stmt=$this->da->runStmt($sql);
		//ss_error::log($stmt->errorInfo(),'Info');
		return $this->getArray($stmt);
		//$result=$stmt->fetchObject('hamilton_dao_entry',array($this->primary));
	}
	
	private function getArray($stmt){
		$result=array();
		while($obj=$stmt->fetchObject('hamilton_dao_office',array($this->primary))){
			$result[]=$obj->clean();
		}
		$this->da->closeCursor($stmt);
		return $result;
	}
	*/
}
?>